#include <windows.h>
#include "Mini_Win.h"

int WINAPI wWinMain(  HINSTANCE hInstance,   HINSTANCE hPrevInstance, 
					 LPWSTR lpCmdLine,   int nShowCmd )
{
	CMiniWin win;
	win.Init(0, CRect(200,200,1000,800));

	CMiniWin* window = reinterpret_cast<CMiniWin*>(GetWindowLongPtr(win.hwnd(), GWLP_USERDATA));

	window->ShowWindow(SW_SHOW);

	MSG msg;

	while ( GetMessage(&msg, NULL, 0, 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}

	return 0; 
}
